package cn.xo68.boot.auth.core.common;

/**
 * 常量
 * @author wuxie
 * @date  2018-8-7
 */
public final class AuthConstants {


    /**
     * 分隔符冒号
     */
    public static final String SPLIT_COLON=":";

    /**
     * oauth2客户缓存名称
     */
    public static final String CACHE_NAME_OAUTH2_CLIENT="client";

    public static final String CACHE_NAME_OAUTH2_RESOURCE="res";

    public static final String CACHE_NAME_OAUTH2_ROLE_RESOURCE="role-res";

    /**
     * oauth2用户缓存
     */
    public static final String CACHE_NAME_OAUTH2_USER="usr";

    public static final String CACHE_NAME_OAUTH2_TOKEN="token";

    public static final String CACHE_NAME_OAUTH2_REFRESH_TOKEN="refreshtoken";

    public static final String CACHE_NAME_OAUTH2_AUTHORIZATION_CODE="AuthorizationCode";



    public static final String CACHE_NAME_LOGIN_FAIL="loginfail";

    public static final String CACHE_NAME_CLIENT_USERINFO="cli:usr";

    public static final String CACHE_NAME_CLIENT_RESOURCE="cli:res";

    /**
     * 响应成功默认数据
     */
    public static final String RESPONSE_DATA_SUCCESS="success";
    /**
     * 响应失败默认数据
     */
    public static final String RESPONSE_DATA_FAIL="fail";
}
